package mspbots.qbd.data.online.deposit;

import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import mspbots.qbd.data.BaseReceiver;
import mspbots.qbd.data.online.customer.OnlineCustomer;
import org.springframework.data.r2dbc.repository.R2dbcRepository;
import org.springframework.stereotype.Component;
import reactor.core.publisher.Mono;

public interface OnlineDepositRepository extends R2dbcRepository<OnlineDeposit, Long> {
    /**
     * find entity other id and tenant id
     *
     * @param otherId  other Id
     * @param tenantId tenant id
     * @return Customer entity
     */
    Mono<OnlineDeposit> findByOtherIdAndTenantId(Long otherId, Long tenantId);
}
